communication/sms

send SMS on Android

rule:
  meta:
    name: send SMS on Android
    namespace: communication/sms
    authors:
      - "@mr-tz"
    scopes:
      static: function
      dynamic: unsupported  # requires offset features
    # att&ck:
    #   - Mobile::SMS Control [T1582]
  features:
    - and:
      - os: android
      # ... = (*env)->FindClass(env, "android/telephony/SmsManager");
      - string: "android/telephony/SmsManager"
      - optional:
        - or:
          - and:
            - arch: i386
            - offset: 0x30 = (*env)->FindClass
          - and:
            - arch: amd64
            - offset: 0x1C = (*env)->FindClass
      # ... = (*env)->GetMethodID(env, ..., "sendTextMessage" ...);
      - string: "sendTextMessage"

last edited: 2023-11-24 10:34:28